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

how can convert this code from C to C++ because i don't have any i

$
0
0
mmm no i'm not IT person i wanna just make a small comparison between two codes and i spend a lot of time to study this is code i know its very easy but i need it please


#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>