The til (~) [tilde is Spanish not Portuguese!] above an ã or an õ both nasalizes and stresses the syllable, for example: