Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

from c to c++

$
0
0
please how can convert this code from C to C++



#include <stdio.h>

int main() {
    int N;
    for(;scanf("%d",&N) && N!=0;printf("%d => %d\n",N,N*N-N+1));
    return 0;
}





Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>